<?php
/**
 * Created by lzl
 * Date: 2021 2021/9/28
 * Time: 10:36
 */

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::group(['middleware' => ['admin'], 'namespace' => 'App\\Plugins\\Controllers\\Admin'], function ($r) {
    /**
     * @var $r Route
     */
    $r->group(['prefix' => 'plugins'], function ($r){
        /**
         * @var $r Route
         */
        $r->group(['prefix' => 'share-free'], function ($r){
            /**
             * @var $r Route
             */
            $r->get('index', 'ShareFreeController@index');

            $r->get('order', 'ShareFreeController@order');

            $r->get('log/{id}', 'ShareFreeController@orderLog');

            $r->any('edit-goods', 'ShareFreeController@editShareGoods');

            $r->post('delete-goods', 'ShareFreeController@deleteShareGoods');

        });
    });

});

